﻿using KinonekoSoftware.Foundation.UI.Controls.Selectors;

namespace KinonekoSoftware.Studio.Controls
{
    public sealed class DocumentListBox : ForestListBox
    {
        protected override DependencyObject GetContainerForItemOverride()
        {
            return new DocumentListItem();
        }
    }
    
    public sealed class DocumentListItem : ForestListBoxItem
    {

        public static readonly DependencyProperty EditorPanelProperty =
            DependencyProperty.Register(
                                        nameof(EditorPanel),
                                        typeof(object),
                                        typeof(DocumentListItem),
                                        new PropertyMetadata(default(object)));

        public object EditorPanel
        {
            get => (object)GetValue(EditorPanelProperty);
            set => SetValue(EditorPanelProperty, value);
        }
    }
}